import request from '@/utils/request'

// 查询区县列表
export function listDistrictCounty(query) {
  return request({
    url: '/system/districtCounty/list',
    method: 'get',
    params: query
  })
}

// 查询区县详细
export function getDistrictCounty(id) {
  return request({
    url: '/system/districtCounty/' + id,
    method: 'get'
  })
}

// 新增区县
export function addDistrictCounty(data) {
  return request({
    url: '/system/districtCounty',
    method: 'post',
    data: data
  })
}

// 修改区县
export function updateDistrictCounty(data) {
  return request({
    url: '/system/districtCounty',
    method: 'put',
    data: data
  })
}

// 删除区县
export function delDistrictCounty(id) {
  return request({
    url: '/system/districtCounty/' + id,
    method: 'delete'
  })
}
